package spider.data;

import java.util.List;

import nlp.model.Message;
import spider.common.SourceType;
import spider.data.impl.SinaWeiboDataImpl;

public class DataMakerImpl implements DataMaker{

	private DataInterface dataInterface;
	
	public List<Message> getMessageByUID(long uid, int sourceType) {
		List<Message> msgList=null;
		switch(sourceType){
			case SourceType.SINA_WEIBO:
				dataInterface=new SinaWeiboDataImpl();
				msgList=dataInterface.getMessageByUID(uid);
				break;
			default:
				break;
		}
		return msgList;
	}

	public List<Long> getFriendsIdByUID(long uid, int sourceType) {
		List<Long> fids=null;
		switch(sourceType){
			case SourceType.SINA_WEIBO:
				dataInterface=new SinaWeiboDataImpl();
				fids=dataInterface.getFriendsIdByUID(uid);
				break;
			default:
				break;
		}
		return fids;
	}

}
